

export const tableBtnConf = [
    {
        label: '详情',
        icon: 'ios-eye',
        key: 'detail'
    },
    {
        label: '编辑',
        icon: 'md-color-filter',
        key: 'edit'
    },
    {
        label: '指派',
        icon: 'ios-paper-plane',
        key: 'plane'
    },
    {
        label: '取消',
        icon: 'md-close',
        key: 'cancel'
    }
]

 export const tableConf = [
    {
        width: 70,
        title: "序号",
        align: "center",
        key: "_index",
      },
      {
        title: "下单人",
        key: "publisher",
        align: "center",
        maxWidth: 125,
        minWidth: 125,
      },
      {
        title: "订单号",
        key: "id",
        align: "center",
        minWidth: 180,
      },
      {
        title: "下单时间",
        key: "ctime",
        align: "center",
        minWidth: 180,
      },
      {
        title: "车牌号",
        key: "car_number",
        align: "center",
        maxWidth: 120,
        minWidth: 120,
      },
      {
        title: "保险公司",
        key: "insurename",
        align: "center",
        maxWidth: 140,
        minWidth: 140,
      },
      {
        title: "所属车队",
        key: "fleetname",
        align: "center",
        maxWidth: 120,
        minWidth: 120,
      },
      {
        title: "救援区域",
        key: "start_town",
        align: "center",
        maxWidth: 120,
        minWidth: 120,
      },
      {
        title: "救援类型",
        key: "rescue_type_name",
        align: "center",
        maxWidth: 120,
        minWidth: 120,
      },
      {
        title: "付款类型",
        key: "balance_type",
        align: "center",
        maxWidth: 120,
        minWidth: 120,
        render: (h, params) => {
          let text = params.row.balance_type == 0 ? "现结" : "月结";
          return h("span", text);
        },
      },
      {
        title: "到达时间",
        key: "confirm_time",
        align: "center",
        minWidth: 180,
      },
      {
        title: "完成时间",
        key: "arrive_time",
        align: "center",
        minWidth: 180,
      },
      {
        title: "到达公里数 (km)",
        key: "arrive_km",
        align: "center",
        maxWidth: 110,
        minWidth: 110,
      },
      {
        title: "施救公里数 (km)",
        key: "real_km",
        align: "center",
        maxWidth: 110,
        minWidth: 110,
      },
      {
        title: "车辆类型",
        key: "cartype_name",
        align: "center",
        maxWidth: 150,
        minWidth: 150,
      },
      {
        title: "金额",
        key: "money",
        align: "center",
        maxWidth: 80,
        minWidth: 80,
      },
      {
        title: "状态",
        key: "status_name",
        maxWidth: 100,
        minWidth: 100,
      },
      {
        title: "终点是否异常",
        key: "abnormal_end",
        align: "center",
        maxWidth: 90,
        minWidth: 90,
        render:(h, params) => {
          let text = params.row.abnormal_end == 1?'是':'否'
          return h('span',text)
        }
      },
      {
        title: "客服备注",
        key: "admin_memo",
        maxWidth: 160,
        minWidth: 160,
      },
      {
        title: "操作",
        slot: "action",
        align: "center",
        minWidth: 260,
        fixed: "right",
        _unexport: true // 非导出项
      },
] 
